<template>
  <div class="statistic-tab">
    <div class="tab-top">
      <div class="tab-con">
        <div class="tab-li">
          <div class="tab-li-top">
            <span>{{ numInfo.numAll }}</span>
            <span>人</span>
          </div>
          <div class="tab-li-bottom">总计</div>
        </div>
        <div class="tab-li li-un">
          <div class="tab-li-top">
            <span>{{ numInfo.numNo }}</span>
            <span>人</span>
          </div>
          <div class="tab-li-bottom">未评</div>
        </div>
        <div class="tab-li li-had">
          <div class="tab-li-top">
            <span>{{ numInfo.numHas }}</span>
            <span>人</span>
          </div>
          <div class="tab-li-bottom">已评</div>
        </div>
        <div class="tab-li li-no">
          <div class="tab-li-top">
            <span>{{ numInfo.numNoSub }}</span>
            <span>人</span>
          </div>
          <div class="tab-li-bottom">未提交</div>
        </div>
      </div>
      <slot name="btn"></slot>
    </div>
    <!-- <div class="tips">温馨提示：本季度可评“好”等次15人，已评0人。</div> -->
    <slot name="tips"></slot>
  </div>
</template>

<script>
export default {
  name: 'StatistivTab',
  components: {},
  props: {
    statisticInfo: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {
      numInfo: {},
    }
  },
  watch: {
    statisticInfo: {
      handler(news) {
        this.numInfo = news
      },
      deep: true,
      immediate: true,
    },
  },
  computed: {},
  created() {},
  mounted() {},
  methods: {},
}
</script>
<style lang="scss" scoped>
.statistic-tab {
  width: 343px;
  background: #ffffff;
  border-radius: 5px;
  margin: 10px 16px;
  padding: 15px 12px 13px;

  .tab-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    .tab-con {
      display: flex;
      align-items: center;
      justify-content: space-around;
      flex: 1;
      .tab-li {
        // padding: 0 10px;
        flex: 1;
        border-right: 1px solid #dfdfdf;
        text-align: center;
        letter-spacing: 0;
        &:first-child {
          padding-left: 0;
        }
        &:last-child {
          border-right: 0;
          padding-right: 0;
        }
        .tab-li-top {
          font-size: 12px;
          margin-bottom: 5px;
          span:first-child {
            font-size: 19px;
            font-weight: bold;
          }
        }
      }
      .li-un {
        .tab-li-top {
          color: #d34848;
        }
      }
      .li-had {
        .tab-li-top {
          color: #2ebc48;
        }
      }
      .li-no {
        .tab-li-top {
          color: #e79e35;
        }
      }
      .li-un,
      .li-had,
      .li-no {
        .tab-li-bottom {
          color: #999999;
        }
      }
    }
    .btn-box {
      margin-left: 10px;
      div {
        width: 84px;
        height: 28px;
        background: #004db6;
        border-radius: 2px;
        color: #ffffff;
        text-align: center;
        line-height: 28px;
      }
    }
  }
  .tips {
    background-color: #f0f2f7;
    border-radius: 2px;
    padding: 8px;
    margin-top: 15px;
    color: #909399;
    font-size: 12px;
  }
}
</style>
